package org.springframework.cloud.starter.feign;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.context.annotation.Configuration;

import javax.annotation.PostConstruct;

/** @deprecated */
@Configuration
@Deprecated
public class FeignStarterDeprecationWarningAutoConfiguration {
    private static final Log LOGGER = LogFactory.getLog(FeignStarterDeprecationWarningAutoConfiguration.class);

    public FeignStarterDeprecationWarningAutoConfiguration() {
    }

    @PostConstruct
    public void logWarning() {
        LOGGER.warn("spring-cloud-starter-feign is deprecated as of Spring Cloud Netflix 1.4.0, please migrate to spring-cloud-starter-openfeign");
    }
}
